package com.chushouya.manager.dto.admin.article;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
@ApiModel("添加文章分类")
public class ArticleCatSaveDTO {

    @ApiModelProperty(value = "文章分类名称", required = true)
    @NotBlank(message = "文章分类名称不能为空")
    protected String categoryName;

    @ApiModelProperty("上级分类id")
    protected Long parentId;

    @ApiModelProperty("排序")
    protected Integer sort;

    @ApiModelProperty(value = "状态", required = true)
    protected Integer status;


}
